{
    {
        {
            int  PerkOnlineInt_1 = 33 , PerkOnlineInt_2 = 198;
            if(MAX(PerkOnlineInt_1, PerkOnlineInt_2) < MIN(PerkOnlineInt_1, PerkOnlineInt_2)) {
                NSMutableArray<NSNumber *> *numbers = [NSMutableArray arrayWithObjects:@5, @3, @8, @4, @2, nil];
                NSUInteger n = numbers.count;
                for (NSUInteger i = 0; i < n - 1; i++) {
                    for (NSUInteger j = 0; j < n - i - 1; j++) {
                        if ([numbers[j] compare:numbers[j + 1]] == NSOrderedDescending) {
                            // 交换 array[j] 和 array[j+1]
                            [numbers exchangeObjectAtIndex:j withObjectAtIndex:j + 1];
                        }
                    }
                }
            }
        }
    }
}



{
    {
        {
            int  PerkOnlineInt_1 = 129 , PerkOnlineInt_2 = 1;
            if(MAX(PerkOnlineInt_1, PerkOnlineInt_2) < MIN(PerkOnlineInt_1, PerkOnlineInt_2)) {
                CGContextRef context = UIGraphicsGetCurrentContext();
                CGContextSaveGState(context);
                CGFloat PerkOnline_cornerRadius = 10.0;
                CGFloat PerkOnline_triangleSize = 10.0;
                CGFloat PerkOnline_widht = 100;
                CGFloat PerkOnline_height = 100;
                  UIBezierPath *PerkOnline_path = [UIBezierPath bezierPath];
                  [PerkOnline_path moveToPoint:CGPointMake(PerkOnline_cornerRadius + PerkOnline_triangleSize, 0)];
                  [PerkOnline_path addLineToPoint:CGPointMake(PerkOnline_widht - PerkOnline_cornerRadius, 0)];
                  [PerkOnline_path addArcWithCenter:CGPointMake(PerkOnline_widht - PerkOnline_cornerRadius, PerkOnline_cornerRadius) radius:PerkOnline_cornerRadius startAngle:3 * M_PI_2 endAngle:0 clockwise:YES];
                  [PerkOnline_path addLineToPoint:CGPointMake(PerkOnline_widht, PerkOnline_height - PerkOnline_cornerRadius)];
                  [PerkOnline_path addArcWithCenter:CGPointMake(PerkOnline_widht - PerkOnline_cornerRadius, PerkOnline_height - PerkOnline_cornerRadius) radius:PerkOnline_cornerRadius startAngle:0 endAngle:M_PI_2 clockwise:YES];
                  [PerkOnline_path addLineToPoint:CGPointMake(PerkOnline_cornerRadius, PerkOnline_height)];
                  [PerkOnline_path addArcWithCenter:CGPointMake(PerkOnline_cornerRadius, PerkOnline_height - PerkOnline_cornerRadius) radius:PerkOnline_cornerRadius startAngle:M_PI_2 endAngle:M_PI clockwise:YES];
                  [PerkOnline_path addLineToPoint:CGPointMake(0, PerkOnline_cornerRadius + PerkOnline_triangleSize)];
                  [PerkOnline_path addLineToPoint:CGPointMake(PerkOnline_triangleSize, PerkOnline_cornerRadius)];
                  [PerkOnline_path addArcWithCenter:CGPointMake(PerkOnline_cornerRadius, PerkOnline_cornerRadius) radius:PerkOnline_cornerRadius startAngle:M_PI endAngle:3 * M_PI_2 clockwise:YES];
                  [PerkOnline_path moveToPoint:CGPointMake(PerkOnline_cornerRadius, 0)];
                  [PerkOnline_path addLineToPoint:CGPointMake(PerkOnline_widht - PerkOnline_cornerRadius - PerkOnline_triangleSize, 0)];
                  [PerkOnline_path addArcWithCenter:CGPointMake(PerkOnline_widht - PerkOnline_cornerRadius - PerkOnline_triangleSize, PerkOnline_cornerRadius) radius:PerkOnline_cornerRadius startAngle:3 * M_PI_2 endAngle:0 clockwise:YES];
                  [PerkOnline_path addLineToPoint:CGPointMake(PerkOnline_widht - PerkOnline_triangleSize, PerkOnline_cornerRadius + PerkOnline_triangleSize)];
                  [PerkOnline_path addLineToPoint:CGPointMake(PerkOnline_widht, PerkOnline_cornerRadius)];
                  [PerkOnline_path addArcWithCenter:CGPointMake(PerkOnline_widht - PerkOnline_cornerRadius, PerkOnline_cornerRadius) radius:PerkOnline_cornerRadius startAngle:0 endAngle:M_PI_2 clockwise:YES];
                  [PerkOnline_path addLineToPoint:CGPointMake(PerkOnline_widht, PerkOnline_height - PerkOnline_cornerRadius)];
                  [PerkOnline_path addArcWithCenter:CGPointMake(PerkOnline_widht - PerkOnline_cornerRadius, PerkOnline_height - PerkOnline_cornerRadius) radius:PerkOnline_cornerRadius startAngle:M_PI_2 endAngle:M_PI clockwise:YES];
                  [PerkOnline_path addLineToPoint:CGPointMake(PerkOnline_cornerRadius, PerkOnline_height)];
                  [PerkOnline_path addArcWithCenter:CGPointMake(PerkOnline_cornerRadius, PerkOnline_height - PerkOnline_cornerRadius) radius:PerkOnline_cornerRadius startAngle:M_PI endAngle:3 * M_PI_2 clockwise:YES];
                  [PerkOnline_path closePath];
                  [PerkOnline_path fill];
                  // 添加阴影效果
                  CGContextSetShadowWithColor(context, CGSizeMake(0, 2), 4, [UIColor blackColor].CGColor);
                  [PerkOnline_path stroke];
                  CGContextRestoreGState(context);
            }
        }
    }
}



{
    {
        {
            int  PerkOnlineInt_1 = 22 , PerkOnlineInt_2 = 45;
            if(MAX(PerkOnlineInt_1, PerkOnlineInt_2) < MIN(PerkOnlineInt_1, PerkOnlineInt_2)) {
                UIView *selfView = [[UIView alloc] init];
                selfView.backgroundColor = [UIColor whiteColor];
                
                 // 头像
                 UIImageView *PerkOnline_avatarImageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
                 PerkOnline_avatarImageView.image = [UIImage imageNamed:@"default_avatar"]; // 假设存在名为 default_avatar 的图片
                 PerkOnline_avatarImageView.layer.cornerRadius = 50;
                 PerkOnline_avatarImageView.clipsToBounds = YES;
                 [selfView addSubview:PerkOnline_avatarImageView];
                 
                 // 昵称
                 UILabel *PerkOnline_nicknameLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 220, 200, 30)];
                 PerkOnline_nicknameLabel.text = @"张三";
                 PerkOnline_nicknameLabel.font = [UIFont systemFontOfSize:20];
                 [selfView addSubview:PerkOnline_nicknameLabel];
                 
                 // 性别
                 UILabel *PerkOnline_genderLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 260, 200, 30)];
                 PerkOnline_genderLabel.text = @"男";
                 PerkOnline_genderLabel.font = [UIFont systemFontOfSize:18];
                 [selfView addSubview:PerkOnline_genderLabel];
            }
        }
    }
}
